package com.hx.er.dao.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;

import com.hx.er.bean.base.FoodTemplateBean;
import com.hx.er.bean.detail.FoodTemplateDetailBean;
import com.hx.er.dao.IFoodTemplateDao;
import com.hx.er.mapper.IFoodTemplateMapper;

public class FoodTemplateDaoImpl implements IFoodTemplateDao {
	@Autowired
	private IFoodTemplateMapper foodTemplateMapper;

	@Override
	public List<FoodTemplateBean> getFoodTemplateAliveList(Map<String, Object> conditions) {
		return this.foodTemplateMapper.getFoodTemplateAliveList(conditions);
	}

	@Override
	public void insertFoodTemplateWithoutId(FoodTemplateBean foodBean) {
		this.foodTemplateMapper.insertFoodTemplateWithoutId(foodBean);
	}

	@Override
	public int getFoodTemplateAliveCount(Map<String, Object> conditions) {
		return this.foodTemplateMapper.getFoodTemplateAliveCount(conditions);
	}

	@Override
	public FoodTemplateDetailBean getFoodTemplateAliveById(long foodId) {
		return this.foodTemplateMapper.getFoodTemplateAliveById(foodId);
	}

	@Override
	public int deleteFoodTemplate(FoodTemplateBean foodTemplateBean) {
		return this.foodTemplateMapper.deleteFoodTemplate(foodTemplateBean);
	}

	@Override
	public int updateFoodTemplate(FoodTemplateBean foodTemplateBean) {
		return this.foodTemplateMapper.updateFoodTemplate(foodTemplateBean);
	}

}
